package com.iknowone.servlet;

import java.util.List;

import javax.servlet.http.HttpServletRequest;

import com.iknowone.db.DbManager;
import com.iknowone.entity.Category;
import com.iknowone.entity.Result;

public class CategoryListServlet extends BaseServlet  {
	
	private static final long serialVersionUID = -6236351816777978783L;

	protected Result getResult(HttpServletRequest req) {
		DbManager dbManager = new DbManager();
		List<Category> catList =  dbManager.catList();
		Result result = new Result(catList);
		return result;
	}
}
